function initAll(){
	document.getElementById("lincoln").onclick = saySomething;
	document.getElementById("nixon").onclick = saySomething;
	document.getElementById("kennedy").onclick = saySomething;
	
}

function saySomething (){
	switch (this.id) {
	case "lincoln":
		alert("Has elegido Linconln");
		break;

	case "kennedy":
		alert("Has elegido Kennedy");
		break;
	
	case "nixon":
		alert("Has elegido Nixon");
		break;
		
	default:
		break;
	}
	
}